export interface purchaseListParams {
  page?: number;
  pageSize?: number;
  companyId?: number | undefined;
  state: string;
  beginDate: string;
  endDate: string;
}

export interface purchaseListData {
  id: number;
  companyId: number;
  receiveTime: string;
  addTime: string;
  addAccountId: number;
  picture: string;
  remarks: string;
  state: string;
  addAccountName: string;
  companyName: string;
  counts: number;
  foods: string | undefined | foodsData[];
}

export interface purchaseListReturn {
  counts: number;
  list: purchaseListData[];
  pageSize: number;
}

// 提交采购申请
export interface foodsData {
  id?: 0;
  purchaseId?: 435;
  foodName: string;
  unit: string;
  supplierId: number;
  wholePrice: string;
  sellPrice: string;
  purchasePrice: string;
  purchaseCounts: number;
  receiveCounts?: number;
  supplierName?: string;
}
export interface purchaseAddParams {
  receiveTime: string;
  remarks: string;
  foods: foodsData[];
}

// 收货验收
export interface purchaseCheck {
  id: number;
  picture?: string;
}

// 获取机构列表
export interface companyListParams {
  page: number;
  pageSize: number;
  name?: string;
  key?: string;
}

export interface companyListData {
  id: number;
  pid: number;
  name: string;
  address: string;
  province: string;
  city: string;
  telephone: string;
  startTime: string;
  legalPerson: string;
  mobile: string;
  creditCode: string;
  license: number;
  medicalPoint: number;
  house: string;
  certificate: string;
  picture: string;
  addAccountId: number;
  addAccountName: string;
  addTime: string;
  adminId: number;
  adminUserName: string;
  adminPwd: string;
  adminName: string;
  adminMobile: string;
}

export interface companyListReturn {
  counts: number;
  list: companyListData[];
  pageSize: number;
}
